package roads

import "apibe/single/src/v1/factory/tools"

// todo do grpc

var leaves = []struct {
	Value       string `json:"value"`
	Description string `json:"description"`
}{
	{"AES", "对请求体进行AES加密,参数是secretKey"},
	{"MD5", "对请求体进行MD5加密"},
	{"BASE64", "对请求体进行BASE64加密"},
}

type RequestFunction struct {
	FunctionName string      `json:"function_name,required" bson:"function_name,required"`
	Parameter    interface{} `json:"parameter" bson:"parameter"`
}

func (req *Request) Leave(reqFunc RequestFunction, arg *tools.Arguments) {
	switch reqFunc.FunctionName {
	case "AES":
	case "BASE64":
	case "MD5":
	default:
	}
}

// GetLeaves
// 返回所有的 leaves case
func GetLeaves() interface{} {
	return leaves
}
